package com.hx.office.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 规定的考勤时间对象 office_attendance_time
 * 
 * @author lidelong
 * @date 2023-05-18
 */
public class AttendanceTime extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 规定的上班时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "规定的上班时间", width = 30)
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date beginTime;

    /** 规定的下班时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "规定的下班时间", width = 30)
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date endTime;

    /** 部门 */
    @Excel(name = "部门")
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBeginTime(Date beginTime)
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime()
    {
        return beginTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
